@extends('admin.layout.main')
@section("content")
<style>
    .vintage {
        color: transparent;
        background-color: black;
        text-shadow: rgba(255, 255, 255, 0.5) 0 5px 6px, rgba(255, 255, 255, 0.2) 1px 3px 3px;
        -webkit-background-clip: text;
    }
    .content{
        padding-left:20px;
    }
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>商机详情</legend>
</fieldset>
<div class="content">
    <div class="layui-form-item" >
        <label class="vintage">姓名:&nbsp;&nbsp;&nbsp;{{$business->name}}</label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >客户ID：&nbsp;&nbsp;&nbsp;<a href="/admin/customer/{{$business->customer_id}}/setting">{{$business->customer_id}}</a></label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >用户ID:&nbsp;&nbsp;&nbsp;<a href="/admin/user/{{$business->user_id}}/setting">{{$business->user_id}}</a></label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >产品ID:&nbsp;&nbsp;&nbsp;<a href="/admin/product/{{$business->product_id}}/setting">{{$business->product_id}}</a></label>
    </div>
        <div class="layui-form-item">
    <label class="vintage"  >价值:&nbsp;&nbsp;&nbsp;{{$business->money}}</label>
        </div>
            <div class="layui-form-item">
    <label class="vintage"  >进度:&nbsp;&nbsp;&nbsp;{{$business->progress}}</label>
            </div>
                <div class="layui-form-item">
    <label class="vintage"  >成交几率:&nbsp;&nbsp;&nbsp;{{$business->transaction_probability}}</label>
                </div>
                    <div class="layui-form-item">
    <label class="vintage"  >下一联系时间:&nbsp;&nbsp;&nbsp;{{$business->next_time}}</label>
                    </div>
    <div class="layui-form-item">
        <label class="vintage"  >创建时间:&nbsp;&nbsp;&nbsp;{{$business->create_time}}</label>
    </div>
</div>
<button class="layui-btn" id="update">进入修改页面</button>
<button class="layui-btn" id="back">返回</button>
    <script>
        $('#update').on('click', function(){
            window.location.href="/admin/business/{{$business->id}}/edit"
        });
        $('#back').on('click', function(){
            history.back();
        });
    </script>
@endsection
